package cn.iocoder.yudao.module.erp.convert.product;

import cn.iocoder.yudao.module.erp.controller.admin.product.vo.product.ErpProductRespVO;
import cn.iocoder.yudao.module.erp.dal.dataobject.product.ErpProductDO;
import cn.iocoder.yudao.module.erp.dal.dataobject.product.ErpProductInventoryInfoDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ProductConvert {

    ProductConvert INSTANCE = Mappers.getMapper(ProductConvert.class);

    default ErpProductRespVO convert(ErpProductDO basicInfo, ErpProductInventoryInfoDO inventoryInfo) {
        ErpProductRespVO respVO = new ErpProductRespVO();
//        respVO.setInventoryInfo(BeanUtils.toBean(inventoryInfo, ProductInventoryInfoRespVO.class));
        return respVO;
    }
}
